package com.atpy.reggie.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("t_coupon_user")
public class CouponUser {
    //id
    private long id;
    //用户id
    private long userId;
    //优惠卷id
    private long couponTempId;
    //优惠类型
    private String couponType;
    //优惠券编码
    private String codeNo;
    //优惠金额
    private BigDecimal couponAmount;
    //满减金额
    private BigDecimal fullAmount;
    // 生效时间
    private LocalDateTime effectiveStartTime;
    //失效时间
    private LocalDateTime effectiveEndTime;
    // 状态：-1已作废 0待使用 1已使用 2已过期
    private int status;
    //使用时间
    private LocalDateTime useTime;
    //创建时间
    private LocalDateTime createTime;
    //修改时间
    private LocalDateTime updateTime;
}
